import request from "@/utils/request.js";

export const getHomeBannerAPI = (params = {}) => {
    // 默认为1 商品为2
    const { distributionSite = '1' } = params;
    return request({
        method: 'GET',
        url: '/home/banner',
        params: {
            distributionSite
        }
    })
}

export const findNewAPI = () => request.get('/home/new')

export const getHotAPI = () =>request.get('/home/hot')

export const getGoodsAPI= () =>request.get('/home/goods')